package com.infore.operation.service;

import com.infore.operation.entity.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * @author:wk
 * @date:Created in 10:41 2018\4\17 0017
 */
public interface StatisticsService {

    List<Map<String,Object>> queryFaultStatistics(String userId, String type, String startTime, String endTime, String pageNum) throws ParseException;

    List<Map<String,Object>> queryOperationStatistics(String userId, String type, String pageNum) throws ParseException;

    List<QualityList> queryQualityList(String userId, String stationId, Integer pageNum);

    Quality queryQualityMessage(String qualityId);


    void saveQuality(String userId, String time, String equipId, String num, String faultDisc, String discrib, String artisanId, String equipName, String receiveTime, MultipartFile[] images) throws IOException;

    List<NQualityList> queryQualityArtisanSqeList(String userId,String state,Integer pageNum);


    void updateQualityArtisan(String suggestion, String time, String id, String sqeId, String userId);

    void updateQualitySqe(String scheme, String measures, String causes, String id, String time, String userId);

    List<SuggestionType> querySuggestionType();

    void saveSuggestion(String type, String anonymity, String aspectOn, String submitTime, String suggestion, String userId, String title);

    List<Suggestion> querySuggestionList(Integer pageNum, String suggestionState, String sortType, String userId);

    void querySupport(String suggestionId, String userId, String supportState);

    List<Suggestion> searchSuggestion(Integer pageNum, String sortType, String startTime, String endTime, String suggestionType, String keyword, String branchId, String userId);
}
